#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common;


/**
 * @param <>
 * @author yangfei
 * @desc 统一返回
 * @create 2017-07-22 17:02
 * @update 2017-07-22 17:02
 **/
public class Response {


    private Error error;

    public Error getError() {
        return error;
    }

    public void setError(Error error) {
        this.error = error;
    }

    public static class Error {

        public Error(String code, String message, String time) {
            this.code = code;
            this.message = message;
            this.time = time;
        }

        //    error_code 状态值：200 极为成功，其他数值代表失败
        private String code;

        //    error_msg 错误信息，若status为0时，为success
        private String message;

        private String path;

        private String time = null;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }
    }
}